<?php
error_reporting(E_ALL);
require_once dirname(__FILE__).'/../config.inc.php';
define('TEST_PATH', ROOT_PATH.'/_Test');
define('TEST_CONTENTS_PATH', HTTP_ABS_PATH.'/_Tests/data');
//define('TEST_CONTENTS', TEST_CONTENTS_PATH.'/content.php');

$separator = (FALSE !== strpos(PHP_OS,'WIN'))?';':':';
//ini_set('include_path', implode($separator, array(TEST_PATH, LIB_DIR, ABS_PATH, ini_get('include_path'))));

require_once 'simpletest/unit_tester.php';
require_once 'simpletest/web_tester.php';
require_once 'simpletest/reporter.php';
require_once 'simpletest/browser.php';
require_once 'simpletest/mock_objects.php';
require_once 'simpletest/extensions/pear_test_case.php';

require_once ('sys/db_struct.inc.php');
require_once ('sys/filler.inc.php');

require_once CLASSES_DIR.'/TplFactory.inc.php';
/////////////////////////////////////////////////////////////////////////////

$_Config['db_debug_mode'] = !true;
$_Config['db_name'] = '_sitecarcasse_tests_';
$_Config['db_host'] = '127.0.0.1';
$_Config['db_user'] = 'root';
$_Config['db_pass'] = 'pokimon123';

$_Config['db'] = &DBI::getConnection($_Config['db_name']);
?>
